@cup-color: rgba(255, 255, 255, 0.85);
@cup-dark-color: rgba(255, 255, 255, 0.95);
.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: @dark-color;
  .cup {
    width: 160px;
    height: 240px;
    position: relative;

    &::before {
      position: absolute;
      top: -10px;
      left: 0;
      width: 100%;
      height: 20px;
      border-radius: 50px/15px;
      background-color: @cup-dark-color;
      content: "";
    }

    &::after{
      position: absolute;
      bottom: -5px;
      left: 30px;
      width: calc(100% - 60px);
      height: 10px;
      border-radius: 50px/10px;
      background-color: @cup-dark-color;
      box-shadow: 0 5px 5px rgba(0, 0, 0, .35);
      content: "";
    }

    &-left-dark,&-right-dark{
      height: 0;
      width: 0;
      border-top: 0px solid transparent;
      border-left: 30px solid transparent;
      border-right: 30px solid transparent;
      border-bottom: 240px solid @dark-color;
      position: absolute;
      bottom: -2px;
    }
    &-left-dark{
      left: -30px;
    }
    &-right-dark{
      right: -30px;
    }

    &-body {
      height: 100%;
      background-color: @cup-color;
     // border-radius: 0 0 35px 35px;
      overflow: hidden;
      top: 0;
      left: 0;
      display: flex;
      flex-direction: column-reverse;
      &-layer {
        flex: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 60px/10px;
        position: relative;
        margin-bottom: -20px;
        animation: heightAnimation 1 forwards ease-in-out 1s;

        @keyframes heightAnimation {
           0%{
            flex: 0;
           }100%{
            flex: 1;
           }
        }

        &:first-child {
          margin-bottom: -5px;
        }
        &::after {
          position: absolute;
          width: 100%;
          height: 20px;
          background-color: inherit;
          border-radius: 50%;
          top: 0;
          left: 0;
          content: "";
        }

        &.one {
          background-color: rgba(255, 166, 0, 0.4);
        }
        &.two {
          background-color: rgba(11, 235, 142, 0.4);
        }
        &.three {
          background-color: rgba(235, 11, 142, 0.4);
        }
      }
    }
  }
}
